<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
	  xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers"
	  xmlns:be="http://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers"
	  xmlns:bu="http://typo3.org/ns/TYPO3/CMS/Beuser/ViewHelpers">

<f:section name="list_row">
<tr>
	<td>
		<a href="#" class="t3js-contextmenutrigger" data-table="be_users" data-uid="{backendUser.uid}" title="{f:if(condition: '{backendUser.description}', then: '{backendUser.description} ')}(id={backendUser.uid})">
			<be:avatar backendUser="{backendUser.uid}" showIcon="TRUE" />
		</a>
	</td>
	<td class="col-title">
		<be:link.editRecord table="be_users" uid="{backendUser.uid}" title="edit">
			<b>{backendUser.userName}</b>
		</be:link.editRecord>
		<f:if condition="{bu:arrayElement(array: onlineBackendUsers, key: backendUser.uid)}">
			<span class="label label-success"><f:translate key="online" /></span>
		</f:if>
		<br />
		<f:if condition="{backendUser.realName}">
			<be:link.editRecord table="be_users" uid="{backendUser.uid}" title="edit">
				{backendUser.realName}
			</be:link.editRecord>
		</f:if>
	</td>
	<td>
		<f:if condition="{backendUser.lastLoginDateAndTime}">
			<f:then>
				<f:format.date format="{dateFormat} {timeFormat}">{backendUser.lastLoginDateAndTime}</f:format.date>
			</f:then>
			<f:else>
				<f:translate key="never" />
			</f:else>
		</f:if>
	</td>
	<td class="col-control">
		<div class="btn-group" role="group">
			<be:link.editRecord class="btn btn-default" table="be_users" uid="{backendUser.uid}" title="edit" >
				<core:icon identifier="actions-open" />
			</be:link.editRecord>
			<f:if condition="{backendUser.currentlyLoggedIn} == 1">
				<f:then>
					<span class="btn btn-default disabled"><core:icon identifier="empty-empty" /></span>
				</f:then>
				<f:else>
					<f:if condition="{backendUser.isDisabled} == 1">
						<f:then>
							<a class="btn btn-default" href="{bu:issueCommand(parameters: 'data[be_users][{backendUser.uid}][disable]=0', redirectUrl: redirectUrl)}" title="{f:translate(key:'visibility.unhide')}"><core:icon identifier="actions-edit-unhide" /></a>
						</f:then>
						<f:else>
							<a class="btn btn-default" href="{bu:issueCommand(parameters: 'data[be_users][{backendUser.uid}][disable]=1', redirectUrl: redirectUrl)}" title="{f:translate(key:'visibility.hide')}"><core:icon identifier="actions-edit-hide" /></a>
						</f:else>
					</f:if>
				</f:else>
			</f:if>
			<f:if condition="{currentUserUid} == {backendUser.uid}">
				<f:then>
					<span class="btn btn-default disabled"><core:icon identifier="empty-empty" /></span>
				</f:then>
				<f:else>
					<a class="btn btn-default t3js-modal-trigger" href="{bu:removeUser(backendUser:backendUser)}"
						 title="{f:translate(key:'LLL:EXT:beuser/Resources/Private/Language/locallang.xlf:delete')}"
						 data-severity="warning"
						 data-title="{f:translate(key:'LLL:EXT:backend/Resources/Private/Language/locallang_alt_doc.xlf:label.confirm.delete_record.title')}"
						 data-content="{f:translate(key:'confirm',arguments:'{0:backendUser.userName}')}"
						 data-button-close-text="{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:cancel')}">
						<core:icon identifier="actions-edit-delete" />
					</a>
				</f:else>
			</f:if>
		</div>
		<div class="btn-group" role="group">
			<a class="btn btn-default" href="#" onclick="top.TYPO3.InfoWindow.showItem('be_users', '{backendUser.uid}'); return false;"><core:icon identifier="actions-document-info" /></a>
		</div>
		<div class="btn-group" role="group">
			<f:if condition="{compareUserUidList.{backendUser.uid}}">
				<f:then>
					<f:link.action action="removeFromCompareList" arguments="{uid: backendUser.uid}" class="btn btn-default">
						<core:icon identifier="actions-remove" size="small"/>
						<f:translate key="compare" />
					</f:link.action>
				</f:then>
				<f:else>
					<f:link.action action="addToCompareList" arguments="{uid: backendUser.uid}" class="btn btn-default"><core:icon identifier="actions-add" size="small"/> <f:translate key="compare" /></f:link.action>
				</f:else>
			</f:if>
			<bu:SwitchUser backendUser="{backendUser}" />
		</div>
	</td>
</tr>
</f:section>
</html>
